package com.xca.okhttp.service;

import com.xca.okhttp.entity.Dictionaries;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface DictionaryService {
    @FormUrlEncoded
    @POST("txt/dict")
    Call<ResponseBody> getData(@Field("text") String text) ;

    @GET("txt/dict")
    Call<ResponseBody> getData2(@Query("text") String text);

    @GET("txt/dict")
    Call<Dictionaries> getData3(@Query("text")String text);
    @GET("txt/dict")
    Call<Dictionaries> getData4(@QueryMap Map<String , Object> map);
}
